package com.stn.zjx.givingtreasure.net.impl;

import android.annotation.SuppressLint;
import android.widget.Toast;

import com.lzy.okgo.OkGo;
import com.lzy.okgo.cache.CacheEntity;
import com.lzy.okgo.cache.CacheMode;
import com.lzy.okgo.callback.StringCallback;
import com.stn.zjx.givingtreasure.net.UserApi;
import com.stn.zjx.givingtreasure.net.UserRealAuthApi;
import com.stn.zjx.givingtreasure.utils.ToolsUtils;
import com.vondear.rxtools.view.RxToast;

import org.json.JSONObject;

import java.util.HashMap;
import java.util.Map;

public class UserRealAuthNetImpl {


    /**
     * @apiNote 通过token，通过token进行实名认证
     * @param token token
     * @param tag 标签
     * @param callback 请求回调
     */
    public static void up_real(String token,
                               String realRealname,
                               String realIdcard,
                               String realCardface,
                               String realCardidentity,
                               String realHandidentity,

                                                   String tag, StringCallback callback){

        Map<String,String> map=new HashMap<>();
        map.put("token",token);
          map.put("realRealname",realRealname);
        map.put("realIdcard",realIdcard);
        map.put("realCardface",realCardface);
        map.put("realCardidentity",realCardidentity);
        map.put("realHandidentity",realHandidentity);
        OkGo.<String>post(UserRealAuthApi.up_real)
                .tag(tag)
                .isSpliceUrl(true)
                .upJson("")
                .params(map)
                .execute(callback);

    }

}
